package com.bootdo.system.dao;

import com.bootdo.system.domain.JiaoyiVO;
import com.bootdo.system.domain.JiaoyicelueDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2021-02-04 11:46:52
 */
@Mapper
public interface JiaoyicelueDao {

	JiaoyicelueDO get(Long id);
	
	List<JiaoyicelueDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(JiaoyicelueDO jiaoyicelue);
	
	int update(JiaoyicelueDO jiaoyicelue);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);

    List<JiaoyiVO> listwithKeyword(@Param("userid")Long userid,@Param("keyword") String keyword);

    void updateByUserIdAndBizhongid(JiaoyicelueDO jiaoyicelueDO);

    void updateids(@Param("ids") Long[] ids, @Param("userid") Long userid);

    void updateByUserIdAndBizhongid2(JiaoyicelueDO jiaoyicelueDO);

    List<JiaoyicelueDO> getList();

    JiaoyicelueDO getMairuPriceByUidAndBid(@Param("userid") Long userid, @Param("bizhongid") Integer bizhongid);

	JiaoyicelueDO getCelueByUserIdAndBizhongId(@Param("userid") Long userid, @Param("bizhongid") Integer bizhongid);

	void updateZhangfu(JiaoyicelueDO jiaoyicelueDO);

    Integer updateByids(@Param("ids") Long[] ids, @Param("userid") Long userid);

	int updateCelueByIds(JiaoyicelueDO jiaoyicelueDO);
}
